package com.example.demo.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.Commdity;
import com.example.demo.entity.Order;
import com.example.demo.entity.Shop;
import com.example.demo.entity.Dondxi;

import com.example.demo.mapper.ShopMapper;
import com.example.demo.mapper.ObjectMapper;
import com.example.demo.service.ShopService;
import com.example.demo.service.ObjectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ShopImpl extends ServiceImpl<ShopMapper, Shop> implements ShopService{

@Resource
public ShopMapper shopMapper;

public List<Shop> getallshop()
        {
        return shopMapper.allshop();
        }

        public List<Shop> getstateidList(int state) {
                return shopMapper.findBy_stateid(state);
        }


}